package org.despair2D.ui 
{
	import org.despair2D.ui.core.IComponent;
	import org.despair2D.ui.puppet.*;
	

public interface IFusion extends IComponent
{
	
	/** @合体组 **/
	function get group() : FusionGroup
	
	/** @傀儡数目 **/
	function get numPuppets() : int
	
	
	
	/** @动画傀儡 **/
	function createAnimePuppet( sectionName:String, index:int = -1, name:String = null ) : AnimePuppet
	
	/** @画像傀儡 **/
	function createImagePuppet( isCenter:Boolean = false, index:int = -1, name:String = null ) : ImagePuppet
	
	/** @九宫格傀儡 **/
	function createNineScalePuppet( displayRef:*, width:Number = -1, height:Number = -1, index:int = -1, name:String = null ) : NineScalePuppet
	
	/** @显示对象容器傀儡 **/
	function createDisplayObjectContainerPuppet( cacheAsBitmap:Boolean = true, index:int = -1, name:String = null ) : DisplayObjectContainerPuppet
	
	/** @位图文本傀儡 **/
	function createTextPuppet( text:String, offsetX:Number = 0, offsetY:Number = 0, embedFont:Boolean = false, index:int = -1, name:String = null ) : TextPuppet
	
	
	/** @由名称获取傀儡 **/
	function getPuppetByName( name:String ) : IPuppet 
	
	/** @由索引获取傀儡 **/
	function getPuppetAt( index:int = 0 ) : IPuppet
	
	/** @削除全部傀儡 **/
	function removeAllPuppets() : void
	
}
	
}